package com.chrray.position.entity.position.base;

import com.chrray.position.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 系统角色
 *
 * @author lm
 **/
@Entity
@Data
@ApiModel(value = "系统角色", description = "系统角色")
public class SysRoleBaseEntity extends BaseEntity {
    /**
     * 主键
     */
    @Id
    @NotNull(message = "主键是必填项")
    @ApiModelProperty(value = "主键", required = true)
    private Long id;


    @ApiModelProperty(value = "角色名")
    private String roleName;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "状态0启用1禁用")
    private Integer state;

    @ApiModelProperty(value = "删除状态")
    private Integer deleted;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createdTime;



}
